package org.filetransfer.file_transfer_java_backend.repository;
import org.filetransfer.file_transfer_java_backend.entity.DailyStat;
import org.springframework.data.jpa.repository.JpaRepository;

import java.time.LocalDate;
import java.util.List;
import java.util.Optional;
public interface DailyStatRepository extends JpaRepository<DailyStat, Long> {

    Optional<DailyStat> findByStatDateAndType(LocalDate date, String type);
    List<DailyStat> findByTypeAndStatDateBetween(String type, LocalDate startDate, LocalDate endDate);
}
